package com.easy.west.westclient.api.vod.api;

import com.easy.west.westclient.api.base.bean.ResultBean;
import com.easy.west.westclient.api.hotvod.bean.VodList;
import com.easy.west.westclient.api.vod.bean.AlbumBeanList;
import com.easy.west.westclient.api.vod.bean.ClassList;
import com.easy.west.westclient.api.vod.bean.CollectList;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;

public interface VodService {


    /**
     * 获取所有分类
     * @return
     */
    @GET("classifies/findAll")
    Call<ClassList> getClassList();

    /**
     * 根据点播分类获取点播列表
     * @param cid
     * @return
     */
    @GET("classifies/findById/{cid}")
    Call<VodList> getVodlistByCid(@Path("cid")long cid);

    /**
     * 获取我的收藏
     * @param uid
     * @return
     */
    @POST("vodcollects/find/collect")
    @FormUrlEncoded
    Call<CollectList> getMyCollocetList(@Field("uid")long uid);

    /***
     * 收藏点播
     * @param uid
     * @param vid
     * @return
     */
    @POST("vodcollects/create")
    @FormUrlEncoded
    Call<ResultBean> colloectVod(@Field("uid")long uid,@Field("vid")long vid);

    /**
     * 是否收藏点播
     * @param uid
     * @param vid
     * @return
     */
    @POST("vodcollects/iscollect")
    @FormUrlEncoded
    Call<Boolean> isColloectVod(@Field("uid")long uid,@Field("vid")long vid);

    /**
     * 取消收藏接口
     * @param uid
     * @param vid
     * @return
     */
    @POST("vodcollects/delete")
    @FormUrlEncoded
    Call<ResultBean> cancelColloectVod(@Field("uid")long uid,@Field("vid")long vid);

    /**
     * 获取热门专辑
     * @return
     */
    @GET("vodalbums/findHotAlbum")
    Call<AlbumBeanList> getHotAlbum();

    /**
     * 获取所有的专辑
     * @return
     */
    @GET("vodalbums/findAllAlbum")
    Call<AlbumBeanList> getAllAlbum();


}
